package com.teach.demo01;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-02 10:20
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Person {
  private String name;

  public Person() {
    System.out.println("使用无参构造方法构造了Person");
  }

  public Person(String name) {
    this.name = name;
    System.out.println("使用有参构造方法构造了Person:"+name);
  }

  static {
    System.out.println("static Person");
  }

  {
    System.out.println("Person");
  }
}
